﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace demo_ver2
{
    public partial class PPointControl : UserControl
    {
        string filename = "";
        int ppWnd = 0;
        public PPointControl(string _filename, string _safename)
        {
            InitializeComponent(_safename);
            this.filename = _filename;
        }

        public void open()
        {
            this.ppWnd = this.powerPointControl1.LoadDocument(filename);
        }

        public void close()
        {
            this.powerPointControl1.CloseControl();
        }

        public void Reactive()
        {
            
             this.powerPointControl1.ReActiveWindow(this.filename);
        }   
    }
}
